﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/UserLayout.Master" AutoEventWireup="true" CodeBehind="EditPassword.aspx.cs" Inherits="DigitalAnts.User.EditPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Panel DefaultButton="btnSubmit"></asp:Panel>
<div class="col-main">
												<div class="my-account"><div class="page-title">
    <h1>Thay đổi thông tin tài khoản</h1>
</div>
     <div class="fieldset">
            <h2 class="legend">Thay đổi mật khẩu</h2>
            <ul class="form-list">
                    <li class="fields">
                        <div class="customer-name">
                    <div class="field name-firstname">
                          <label class="required">Mật khẩu cũ
                           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="reg" 
                                                     ControlToValidate="txtOldPassword" SetFocusOnError="True" Display="Dynamic" >*</asp:RequiredFieldValidator>
				                              <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ControlToValidate="txtOldPassword" runat="server" ValidationExpression="^[\s\S]{6,20}$" Text="6-20 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
                                              
                          </label>
                                    <div class="input-box">
                                        <asp:TextBox ID="txtOldPassword" TextMode="Password" runat="server" CssClass="input-text required-entry"/>         
                                    </div>

                    </div>
                    </div>
                    </li>
                    <li class="fields">
                        <div class="customer-name">
                    <div class="field name-firstname">
                          <label class="required">Mật khẩu mới
                           <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="reg" 
                                                     ControlToValidate="txtNewPassword" SetFocusOnError="True" Display="Dynamic" >*</asp:RequiredFieldValidator>
				                              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtNewPassword" runat="server" ValidationExpression="^[\s\S]{6,20}$" Text="6-20 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
                                              
                          </label>
                                    <div class="input-box">
                                        <asp:TextBox ID="txtNewPassword"  TextMode="Password" runat="server" CssClass="input-text required-entry"/>
                                    </div>

                    </div>
                    <div class="field name-lastname">
                         <label class="required">Xác nhận mật khẩu
                         <asp:CompareValidator
                            ID="CompareValidator1" runat="server" ErrorMessage="Mật khẩu không trùng khớp" ControlToValidate="txtConfirmPassword" ControlToCompare="txtRetypePassword"></asp:CompareValidator>
                         </label>
                                    <div class="input-box">
                                        <asp:TextBox ID="txtRetypePassword"  TextMode="Password" runat="server" CssClass="input-text required-entry"/>
                                    </div>

                    </div>
                </div>
                    </li>
                            </ul>
            
        </div>
    
   <div class="buttons-set">
        <p class="required">* Không được để trống</p>
        <asp:Button ID="btnSubmit" runat="server" Text="Xác nhận" onclick="btnSubmit_Click" />
    </div>
</div>					</div>
</asp:Content>
